package com.sc.exception;

import lombok.Getter;

import java.util.Map;

/**
 * 自定义异常，用于后端校验
 */
@Getter
public class ValidateException extends RuntimeException {
    private final Map<String, String> errors;

    public ValidateException(Map<String, String> errors) {
        super();
        this.errors = errors;
    }
}
